package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

const (
	port      = ":30002"
	front     = "front_d:30000"
	robot     = "robot_d:30001"
	statistic = "statistic_d:30002"
	task      = "task_d:30003"
)

func main() {
	// 创建 Gin 路由引擎
	r := gin.Default()

	// 健康检查端点
	r.GET("/ping", func(c *gin.Context) {
		c.JSON(http.StatusOK, gin.H{
			"status":  "ok",
			"message": "robot_d is running",
		})
	})

	// 启动服务（监听端口从环境变量获取，默认3000）
	r.Run(port)
}
